//
//  Student+Test.m
//  PostMessa
//
//  Created by never down on 15-5-19.
//  Copyright (c) 2015年 ygy_ios. All rights reserved.
//

#import "Student.h"
//()分类
//:继承
//<>协议
//typedef int <#new#>;
@implementation Student (Test)

- (void)test2 {
    NSLog(@"调用了test2");
    NSString *str = [[NSString alloc]init];
    BOOL res = [str hasPrefix:@""];
    NSRange range = [str rangeOfString:@"test"];
    NSStringFromRange(range);
    
    //////
//    NSString
//    NSStringEncoding *str  = CFStringConvertNSStringEncodingToEncoding()
//    NSRange
    
//结构体
    //NSRange.h  nsrange (location length)
    //NSPoint.h  点，CGPoint(struct)
    //
    struct Date{
        int year;
        int month;
        int day;
    };
    //定义结构体变量
    struct Date d = {2013,4,5};
    d.day = 8;
}



@end
